
/* 自定义样式 - R数据分析平台 */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.skin-blue .main-header .logo {
  background-color: #3c8dbc;
  color: #fff;
  font-weight: bold;
}

.skin-blue .main-header .navbar {
  background-color: #3c8dbc;
}

.box {
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.box-header {
  border-radius: 8px 8px 0 0;
}

.box.box-primary {
  border-top-color: #3c8dbc;
}

.btn {
  border-radius: 4px;
  padding: 8px 16px;
  font-weight: 500;
}

.btn-primary {
  background-color: #3c8dbc;
  border-color: #367fa9;
}

.btn-success {
  background-color: #00a65a;
  border-color: #008d4c;
}

.btn-warning {
  background-color: #f39c12;
  border-color: #e08e0b;
}

.btn-danger {
  background-color: #dd4b39;
  border-color: #d73925;
}

.shiny-input-container {
  margin-bottom: 15px;
}

.form-control {
  border-radius: 4px;
  border: 1px solid #d2d6de;
}

.form-control:focus {
  border-color: #3c8dbc;
  box-shadow: 0 0 0 0.2rem rgba(60, 141, 188, 0.25);
}

.dataTables_wrapper {
  margin-top: 10px;
}

.echarts4r {
  border-radius: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .content-wrapper {
    padding: 10px;
  }
  
  .box {
    margin-bottom: 10px;
  }
}

/* 加载动画 */
.loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3c8dbc;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 通知样式 */
.shiny-notification {
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 卡片样式增强 */
.small-box {
  border-radius: 8px;
}

.small-box .icon {
  font-size: 70px;
  top: 10px;
  right: 10px;
}

/* 表格样式 */
.table {
  border-radius: 8px;
  overflow: hidden;
}

.table th {
  background-color: #f4f4f4;
  font-weight: 600;
}

/* 选择框样式 */
.selectize-input {
  border-radius: 4px;
  border: 1px solid #d2d6de;
}

.selectize-input.focus {
  border-color: #3c8dbc;
  box-shadow: 0 0 0 0.2rem rgba(60, 141, 188, 0.25);
}
